package cn.humaohua.study.hadoop.cmdrunner.c3;

import cn.humaohua.study.hadoop.cmdrunner.Test;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.FsShell;
import org.apache.hadoop.fs.Path;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class FsShell2 implements Test {
//    @Autowired
//    org.apache.hadoop.fs.FsShell fsShell1;

    @Autowired
    org.springframework.data.hadoop.fs.FsShell fsShell2;

    @Override
    public void test() throws Exception {
        org.apache.hadoop.fs.FsShell fsShell1 = new FsShell(new Configuration());
//        fsShell1.close();
        fsShell1.getCurrentTrashDir();
        fsShell1.getCurrentTrashDir(new Path("path"));
//        fsShell1.run(new String[]{});
        fsShell1.getConf();
//        fsShell1.setConf(new Configuration());



        fsShell2.rmr("uri");
        fsShell2.rm("uri");
        fsShell2.mkdir();
        fsShell2.lsr("uri");
        //... ... ...


    }
}
